home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / search.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  1.8 KB  |  72 lines

  1. /*  search.h
  2.  
  3.     Definitions for search functions.
  4.  
  5. */
  6.  
  7. /*
  8.  *      C/C++ Run Time Library - Version 9.0
  9.  *
  10.  *      Copyright (c) 1991, 1998 by Borland International
  11.  *      All Rights Reserved.
  12.  *
  13.  */
  14. /* $Revision:   9.2  $ */
  15.  
  16. #ifndef __SEARCH_H
  17. #define __SEARCH_H
  18.  
  19. #ifndef ___STDDEF_H
  20. #include <_stddef.h>
  21. #endif
  22.  
  23. #if !defined(RC_INVOKED)
  24.  
  25. #if defined(__STDC__)
  26. #pragma warn -nak
  27. #endif
  28.  
  29. #endif  /* !RC_INVOKED */
  30.  
  31. #ifdef __cplusplus
  32. namespace std {
  33. extern "C" {
  34. #endif
  35. void *      _RTLENTRYF _EXPFUNC bsearch(const void * __key, const void * __base,
  36.                            _SIZE_T __nelem, _SIZE_T __width,
  37.                            int (_USERENTRY *fcmp)(const void *,
  38.                            const void *));
  39. void *      _RTLENTRY _EXPFUNC lfind(const void * __key, const void * __base,
  40.                                 _SIZE_T*__num, _SIZE_T __width,
  41.                                 int (_USERENTRY *fcmp)(const void *, const void *));
  42. void *      _RTLENTRY _EXPFUNC lsearch(const void * __key, void * __base,
  43.                                 _SIZE_T*__num, _SIZE_T __width,
  44.                                 int (_USERENTRY *fcmp)(const void *, const void *));
  45. void        _RTLENTRYF _EXPFUNC qsort(void * __base, _SIZE_T __nelem, _SIZE_T __width,
  46.                          int (_USERENTRY *__fcmp)(const void *, const void *));
  47.  
  48.  
  49. #ifdef __cplusplus
  50. }
  51. }
  52. #endif
  53.  
  54.  
  55. #if !defined(RC_INVOKED)
  56.  
  57. #if defined(__STDC__)
  58. #pragma warn .nak
  59. #endif
  60.  
  61. #endif  /* !RC_INVOKED */
  62.  
  63.  
  64. #endif  /* __SEARCH_H */
  65.  
  66. #if defined(__cplusplus) && !defined(__USING_CNAME__) && !defined(__SEARCH_H_USING_LIST)
  67. #define __SEARCH_H_USING_LIST
  68.     using std::bsearch;
  69.     using std::lfind;
  70.     using std::lsearch;
  71.     using std::qsort;
  72. #endif /* __USING_CNAME__ */